﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sunny.Controls.Searcher
{
	[Serializable]
	public class WhereCommand : System.Runtime.Serialization.ISerializable
	{
		public WhereCommand()
		{
		}

		public string Text;
		public object[] Parameters = new object[0];

		#region ISerializable 成员

		public WhereCommand(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
		{
			this.Text = info.GetString("T");
			this.Parameters = (object[])info.GetValue("P", typeof(object[]));
		}

		public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
		{
			info.AddValue("T", this.Text);
			info.AddValue("P", this.Parameters);
		}

		#endregion
	}
}